<?php

require_once( realpath('..') . '/includes/admin.php' );

auth();
$dora->database();
$dora->lib('pagination', 'message');

$total = $dora->db->get_var('select count(*) from house');
$dora->pagination->init( array('total_row'=>$total) );

$house_list = $dora->db->get_results("select * from house limit ". $dora->pagination->start_row .", 10");

$dora->set('house_list', $house_list);

$dora->view('house_list');

?>